<?php $menu = "<div class='first'></div>";
    foreach ($this->container as $page){
        $menu .= "<a href='";
        $menu .= $page->getHref();
        $menu .= "'>";
        $menu .= $page->label;
        $menu .= "</a>";
    } 
    $menu .= "<div class='last'></div>" ?>
<div class='main_menu'>
    <?php echo $menu; ?>    
</div>